Avoid the use of g_autofree
authorMatthias Clasen <mclasen@redhat.com>
Mon, 24 Jul 2017 17:24:33 +0000 (13:24 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 24 Jul 2017 17:27:29 +0000 (13:27 -0400)
We can't use this in code that may be built on win32,
so lets just not use it at all.

gtk/gtkfilechoosernativeportal.c

index 6f686e434c57acf55186058692cc1e1daf4f6a66..b6fa011b5380982b93e6a8bff81a53df55e78733 100644 (file)
@@ -180,7 +180,7 @@ open_file_msg_cb (GObject *source_object,
   GtkFileChooserNative *self = data->self;
   GDBusMessage *reply;
   GError *error = NULL;
-  g_autofree char *handle = NULL;
+  char *handle = NULL;
 
   reply = g_dbus_connection_send_message_with_reply_finish (data->connection, res, &error);
 
@@ -227,6 +227,7 @@ open_file_msg_cb (GObject *source_object,
     }
 
   g_object_unref (reply);
+  g_free (handle);
 }
 
 static GVariant *